FROM python:3.12.6-alpine3.19

RUN mkdir -p /code/app
WORKDIR /code/app

COPY . /code/app

COPY requirements.txt .

RUN pip3 install --no-cache-dir -r /code/app/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

CMD ["scrapy", "crawl", "FundSpider"]


